<div id="total_crawl">
    <h3>collect from website  </h3>
    <table border="0" width="90%" cellspacing="0" cellpadding="0">
        <tr class="title">
            <td width="33.333%">Website</td>
            <td width="33.333%">Works</td>
            <td width="33.333%">percent</td>
        </tr>
        <?php foreach ($sites as $key => $item) : ?>
            <tr>
                <td>
                    <a href="<?php echo $item['url'] ?>" target="_blank"><img src="<?php echo base_url('public/images/sites/' . $item['image']); ?>" align="middle"></a>
                    <a href="<?php echo $item['url'] ?>" target="_blank"><?php echo $item['name'] ?></a>
                </td>
                <td class="right">
                    <?php echo $sites_statistics[$key]; ?>
                </td>
                <td class="right"><?php echo (float) round(($sites_statistics[$key] / $total_works) * 100, 2) . " %" ?></td>
            </tr>
        <?php endforeach; ?>
        <tr>
            <td class="title">Total works </td>
            <td class="right"><?php echo $total_works ?></td>
            <td class="right">100%</td>
        </tr>
    </table>   
</div>
<div class="clear" style="clear: both;">&nbsp;</div>



